package com.yunsc.store.controller;

import com.yunsc.common.utils.Result;
import com.yunsc.module.dto.StoreUserInfoDto;
import com.yunsc.service.YunscStoreUserService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-04-04 23:19
 */
@Api(value = "StoreUserController", tags = "商家用户信息接口")
@Slf4j
@RestController()
@RequestMapping("store/user")
public class StoreUserController {

    @Resource
    private YunscStoreUserService storeUserService;

    @GetMapping("/info")
    public Result getUserInfo() {
        int userId = 10001;
        StoreUserInfoDto userInfoDto = storeUserService.getUserInfo(userId);
        return Result.ok(userInfoDto);
    }

}
